package com.xin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.entity.crm.RolePermissionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermissionEntity> {

    /**
     * 查找角色所拥有的权限
     * @param roleId
     * @return
     */
    List<RolePermissionEntity> findRoleHasPermissionList(@Param("roleId")Long roleId);
}
